
import {
  RadarChartOutlined,
  RocketOutlined,
  // OrderedListOutlined
} from '@ant-design/icons'
import withLoadable from '../untils/with-loadable'


const Information = withLoadable(() => import('../views/information/index'))
const YQmap = withLoadable(() => import('../views/map'))
const Login = withLoadable(() => import('../views/login'))
const NotFound = withLoadable(() => import('../views/not-found'))
const list = withLoadable(() => import("../views/information/list"))


const whiteList = [
  {
    path:'/login',
    component:Login
  },
  {
    path: '/404',
    component: NotFound
  }
]

const permissionRoutes = [
  {
    path: '/admin/information',
    meta:{
      title:'信息提报',
      icon: RocketOutlined
    },
    children:[
      {
      path: '/admin/information/health',
      component: Information,
      meta:{
        title:'信息提报'
    }
    },
    {
      path:'/admin/information/list',
      component:list,
      meta:{
        title:'提报名单'
      }
    }
  ]
    
  },
  {
    path: '/admin/map',
    component: YQmap,
    meta:{
      icon:RadarChartOutlined,
      title:'疫情地图'
    }
  }
]
export {
  whiteList,
  permissionRoutes
}